projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05f474c
)
fs: Fix the wrong type of var
author
Gao Guanhua
<
[email protected]
>
Tue, 14 Apr 2009 06:37:35 +0000
(14:37 +0800)
committer
Wolfgang Denk
<
[email protected]
>
Mon, 27 Apr 2009 22:35:27 +0000
(
00:35
+0200)
The filelen should be signed type, not unsigned type.
otherwise, The condition as below never take.
if (filelen < 0)
Signed-off-by: Gao Guanhua <
[email protected]
>
Signed-off-by: Dave Liu <
[email protected]
>
common/cmd_ext2.c
patch
|
blob
|
history
diff --git
a/common/cmd_ext2.c
b/common/cmd_ext2.c
index c2dcc6436e5d39ac23ef2e32ecc7ddc0810a21e2..8e316c7590813c99f6eae8c3e05f68b75a2e2cf2 100644
(file)
--- a/
common/cmd_ext2.c
+++ b/
common/cmd_ext2.c
@@
-129,7
+129,8
@@
int do_ext2load (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
char *filename = NULL;
char *ep;
int dev, part = 1;
- ulong addr = 0, part_length, filelen;
+ ulong addr = 0, part_length;
+ int filelen;
disk_partition_t info;
block_dev_desc_t *dev_desc = NULL;
char buf [12];